package com.dsg.entity.model.bank;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: erp
 * @description:
 * @author: lironglai
 * @create: 2020-08-15 14:45
 */
@Data
public class DsgBankDetailModel {

    @ExcelProperty(value = "Merchant Number")
    @NotEmpty(message = "Merchant Number不能為空")
    private String merchantNo;

    @ExcelProperty(value = "Card Number")
    @NotEmpty(message = "Card Number不能為空")
    private String paymentNo;

    @ExcelProperty(value = "Amount")
    private BigDecimal tranValue;

    @ExcelProperty(value = "Exp Date")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date validaty;

    @ExcelProperty(value = "Transaction Date \n" +
            "(DDMMYY)")
    private String tranDate;

    @ExcelProperty(value = "Response")
    @NotEmpty(message = "Response不能為空")
    private String response;

    @ExcelProperty(value = "Ref. No")
    @NotEmpty(message = "Ref. No不能為空")
    private String flowNo;
}
